package com.twu.biblioteca;

import java.util.HashMap;

/**
 * Created with IntelliJ IDEA.
 * User: ruchita
 * Date: 21/9/13
 * Time: 11:22 PM
 * To change this template use File | Settings | File Templates.
 */
public class UsersSampleDatabase {
    public HashMap<String,UserDetails> infoMap=new HashMap<String, UserDetails>();

    public UsersSampleDatabase() {
        String currentLibraryNumber="";  //if we have database we can get currentLibraryNumber from db
        //Get library number for user
        CreateLibraryUser u=new CreateLibraryUser();
        u.generateLibraryNumber(currentLibraryNumber);

        //store user data into map having userLibraryNumber as key and UserDetails object as values
        infoMap.put(u.nextLibraryNumber,new UserDetails("shilpa","shilpa","shilpa@gmail.com",999999));

        currentLibraryNumber="111-1111";
        u.generateLibraryNumber(currentLibraryNumber);
        infoMap.put(u.nextLibraryNumber,new UserDetails("test","test","shilpa@gmail.com",999999));
    }
}
